<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="__PUBLIC__/Css/public.css" />
	<link rel="stylesheet" href="__PUBLIC__/Css/node.css" />
</head>
<body>
	<div id="wrap">
		<a href="{:U('Admin/Rbac/addNode')}" class="add-app">添加应用</a>

		<foreach name = 'node' item = 'app'>
			<div class="app">
				<p>
					<strong>{$app.title}</strong>
					[<a href="{:U('Admin/Rbac/addNode', array('pid' => $app['id'], 'level' => 2))}">添加控制器</a>]
					[<a href="">修改</a>]
					[<a href="{:U('Admin/Rbac/deleteNode', array('id' => $app['id']))}">删除</a>]
				</p>

				<foreach name = 'app.child' item = 'controller'>
					<dl>
						<dt>
							<strong>{$controller.title}</strong>
							[<a href="{:U('Admin/Rbac/addNode', array('pid' => $controller['id'], 'level' => 3))}">添加方法</a>]
							[<a href="">修改</a>]
							[<a href="{:U('Admin/Rbac/deleteNode', array('id' => $controller['id']))}">删除</a>]
						</dt>
						<foreach name = 'controller.child' item = 'method'>
							<dd>
								<span>{$method.title}</span>
								[<a href="">修改</a>]
								[<a href="{:U('Admin/Rbac/deleteNode', array('id' => $method['id']))}">删除</a>]
							</dd>
						</foreach>
					</dl>
				</foreach>
			</div>
		</foreach>
	</div>
</body>
</html>